/* 
 * File:   JRepositoryInterface.h
 * Author: johnneyshi
 *
 * Created on 2013年1月6日, 上午8:56
 */

#ifndef JREPOSITORYINTERFACE_H
#define	JREPOSITORYINTERFACE_H
//#include "JErrorInfo.h"
#include "JUpdateConflict.h"
//#include "JWorkingCopiesBaseFile.h"
#include "JRepository.h"
#include "JWorkingCopiesDir.h"
#include "JWorkingCopiesFile.h"

class JRepositoryInterface {
public:
    JRepositoryInterface();
    JRepositoryInterface(const JRepositoryInterface& orig);
    virtual ~JRepositoryInterface();
    static JErrorInfo OpenUpdate();
    static JUpdateConflict Update(JWorkingCopiesDir _dir);
    static JUpdateConflict Update(JWorkingCopiesFile _file);
    static JErrorInfo CloseUpdate();
private:
    static JRepository repository;
};

#endif	/* JREPOSITORYINTERFACE_H */

